package com.yunqiao.service.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Crocutax
 * @email wangxw725@163.com
 * @date 2019-03-04 20:23:45
 */
@TableName("tb_bank_card")
@Data
@ApiModel(value = "对象")
public class BankCardEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @ApiModelProperty(value = "", hidden = false)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userId;
    /**
     * 银行名称
     */
    @ApiModelProperty(value = "银行名称")
    private String bankName;
    /**
     * 银行卡号
     */
    @ApiModelProperty(value = "银行卡号")
    private String cardNumber;
    /**
     * 持卡人姓名
     */
    @ApiModelProperty(value = "持卡人姓名")
    private String ownerName;
    /**
     * 开户行
     */
    @ApiModelProperty(value = "开户行")
    private String openingBank;
    /**
     * 联系号码
     */
    @ApiModelProperty(value = "联系号码")
    private String phone;
    /**
     *
     */
    @ApiModelProperty(value = "", hidden = false)
    private Date createTime;
    /**
     *
     */
    @ApiModelProperty(value = "", hidden = false)
    private Date updateTime;
    /**
     *
     */
    @TableLogic
    @JsonIgnore
    @ApiModelProperty(value = "", hidden = false)
    private Integer deleted;

}
